/*
 * TextAreaOutputStream.java
 *
 * Created on 8 de mayo de 2008, 12:23
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package interfazbuscador;

/**
 *
 * @author usuario_local
 */
import java.io.*;

class TextAreaOutputStream extends OutputStream {
        javax.swing.JTextArea textA;

        public TextAreaOutputStream(javax.swing.JTextArea textArea) {
            this.textA = textArea;
        }
        public void flush() {
            textA.repaint();
        }
        public void write(int b) {
            textA.append(new String(new byte[] {(byte)b}));
        }
    }

